import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '手机号',
    align: "center",
    dataIndex: 'mobile'
  },
  {
    title: '业务名称',
    align: "center",
    dataIndex: 'cpparam'
  },
  {
    title: '渠道号',
    align: "center",
    dataIndex: 'channel'
  },
  {
    title: '业务号',
    align: "center",
    dataIndex: 'cpid'
  },
  {
    title: '订单号',
    align: "center",
    dataIndex: 'oid'
  },
  {
    title: '状态码',
    align: "center",
    dataIndex: 'rescode'
  },
  {
    title: '错误信息',
    align: "center",
    dataIndex: 'resmsg'
  },
  {
    title: '省份',
    align: "center",
    dataIndex: 'province'
  },
  {
    title: '金额(分)',
    align: "center",
    dataIndex: 'fee'
  },
  {
    title: '美播业务',
    align: "center",
    dataIndex: 'keeptype_dictText'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
  {
    title: '创建时间',
    align: "center",
    dataIndex: 'createtime'
  },
  {
    title: '修改时间',
    align: "center",
    dataIndex: 'updatetime'
  },
];

// 高级查询数据
export const superQuerySchema = {
  mobile: {title: '手机号',order: 0,view: 'text', type: 'string',},
  cpparam: {title: '业务名称',order: 1,view: 'text', type: 'string',},
  channel: {title: '渠道号',order: 2,view: 'text', type: 'string',},
  cpid: {title: '业务号',order: 3,view: 'text', type: 'string',},
  oid: {title: '订单号',order: 4,view: 'text', type: 'string',},
  rescode: {title: '状态码',order: 5,view: 'text', type: 'string',},
  resmsg: {title: '错误信息',order: 6,view: 'text', type: 'string',},
  province: {title: '省份',order: 7,view: 'text', type: 'string',},
  fee: {title: '金额(分)',order: 8,view: 'text', type: 'string',},
  keeptype: {title: '美播业务',order: 9,view: 'list', type: 'string',dictCode: 'yn',},
  remark: {title: '备注',order: 10,view: 'textarea', type: 'string',},
  createtime: {title: '创建时间',order: 11,view: 'datetime', type: 'string',},
  updatetime: {title: '修改时间',order: 12,view: 'datetime', type: 'string',},
};
